home *** CD-ROM | disk | FTP | other *** search
- <HTML>
- <HEAD>
- <TITLE>Exposing Style Sheets in Communicator 4.0</TITLE>
-
- <STYLE>
- BODY { background-color: white; font-size: 10pt; }
- FONT { font-family: arial, helvetica, sans-serif; }
- FONT.pageTitle { font-size: 18pt; }
- .layer { background-color: yellow; }
- #arrow { padding-right: 10px; }
- #banner { position: absolute; left: 72; top: 8; }
- </STYLE>
- </HEAD>
-
- <BODY>
- <BLOCKQUOTE>
-
- <IMG ID=arrow SRC="arrow.gif">
-
- <DIV ID=banner CLASS=layer STYLE="color: blue;">
- <FONT CLASS=pageTitle>
- Exposing Style Sheets in Communicator 4.0
- </FONT>
- </DIV>
-
- <P>Each page element with the <TT>ID</TT> attribute reflects a
- style object into the <TT>ids</TT> array that represents the
- styles applied to that page element. The following style has
- been applied to the <TT>arrow</TT> element:</P>
-
- <BLOCKQUOTE>
- <SCRIPT>
- document.writeln("<B>align:</B> ");
- document.writeln(document.ids.arrow.paddingRight);
- document.writeln("<BR>");
- </SCRIPT>
- </BLOCKQUOTE>
-
- <P>Each tag reflects a style object into the <TT>tags</TT> array
- that represents the styles applied to that tag. The following
- style has been applied to the <TT>FONT</TT> tag:</P>
-
- <BLOCKQUOTE>
- <SCRIPT>
- document.writeln("<B>font-family:</B> ");
- document.writeln(document.tags.FONT.fontFamily);
- document.writeln("<BR>");
- </SCRIPT>
- </BLOCKQUOTE>
-
- <P>Each class reflects an array of style objects into the
- <TT>classes</TT> array that represents the styles applied to
- all tags of that class as well as the class in general. The
- following style has been applied to the <TT>layer</TT> class:</P>
-
- <BLOCKQUOTE>
- <SCRIPT>
- document.writeln("<B>backgroundColor:</B> ");
- document.writeln(document.classes.layer.all.backgroundColor);
- document.writeln("<BR>");
- </SCRIPT>
- </BLOCKQUOTE>
-
- <P>Similarly, the following style has been applied only to elements
- whose class is <TT>pageTitle</TT> and whose tag is <TT>FONT</TT>:</P>
-
- <BLOCKQUOTE>
- <SCRIPT>
- document.writeln("<B>fontSize:</B> ");
- document.writeln(document.classes.pageTitle.FONT.fontSize);
- document.writeln("<BR>");
- </SCRIPT>
- </BLOCKQUOTE>
-
- </BLOCKQUOTE>
- </BODY>
- </HTML>
-